#include "VSStaticActor.h"
#include "VSGraphicInclude.h"
#include "VSStream.h"
using namespace VSEngine2;
IMPLEMENT_RTTI(VSStaticActor,VSActor)
BEGIN_ADD_PROPERTY(VSStaticActor,VSActor)
REGISTER_PROPERTY(m_pStaticMeshResource,StaticMeshResource,VSProperty::F_SAVE_LOAD_CLONE)
END_ADD_PROPERTY
IMPLEMENT_INITIAL_BEGIN(VSStaticActor)
IMPLEMENT_INITIAL_END
VSStaticActor::VSStaticActor()
{
	
}
VSStaticActor::~VSStaticActor()
{

}
void VSStaticActor::ProcessInput(unsigned int uiInputType,unsigned int uiEvent,unsigned int uiKey,int x, int y, int z)
{

}
void VSStaticActor::LoadedEvent()
{
	if (m_pStaticMeshResource)
	{
		//m_pNode = (VSNode *)VSObject::CloneCreateObject(m_pStaticMeshResource->GetResource());

		m_pNode = VS_NEW VSStaticMeshNode();
		m_pNode->Clone(m_pStaticMeshResource->GetResource(),0);
	}
}
